package com.order.service.imp;

import com.order.dao.UserMapper;
import com.order.entity.User;
import com.order.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User selectUser(String userName) {
        User user = new User();
        user.setName(userName);
        User user1 = userMapper.selectOne(user);
        return user1 ;
    }
}
